package com.expense.common.entity.params;


/**
 * Created by liming on 2017/2/28.
 */
public class PaginationParam {
    private Integer page = 1;

    private Integer pageSize = 10;

    public Integer getPage() {
        if (page == null || page == 0 || page < 0) page = 1;
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize == 0 || pageSize < 0) pageSize = 10;
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
